{% extends "base.html" %}
{% block title %}添加书籍{% endblock %}
{% block content %}
<h2>添加书籍</h2>
<form method="POST" action="{{ url_for('user_manage.user_add') }}">
    {{ form.hidden_tag() }}
    <p>
        {{ form.username.label }}<br>
        {{ form.username(size=32) }}<br>
        {% for error in form.username.errors %}
            <span style="color: red;">[{{ error }}]</span>
        {% endfor %}
    </p>
    <p>
        {{ form.password.label }}<br>
        {{ form.password(size=32) }}<br>
        {% for error in form.password.errors %}
            <span style="color: red;">[{{ error }}]</span>
        {% endfor %}
    </p>
    <p>
        {{ form.age.label }}<br>
        {{ form.age(size=32) }}<br>
        {% for error in form.age.errors %}
            <span style="color: red;">[{{ error }}]</span>
        {% endfor %}
    </p>
    <p>
        {{ form.birthday.label }}<br>
        {{ form.birthday(size=32) }}<br>
        {% for error in form.birthday.errors %}
            <span style="color: red;">[{{ error }}]</span>
        {% endfor %}
    </p>
    <p>
        {{ form.is_active.label }}<br>
        {{ form.is_active() }}<br>
        {% for error in form.is_active.errors %}
            <span style="color: red;">[{{ error }}]</span>
        {% endfor %}
    </p>
    <p>{{ form.submit() }}</p>
</form>
{% endblock %}